package com.zy.openchat.core.model.circle;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class BlogReplysInfo implements Parcelable {
    public int total_count;
    public List<BlogReplyInfo> replys;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.total_count);
        dest.writeTypedList(this.replys);
    }

    public void readFromParcel(Parcel source) {
        this.total_count = source.readInt();
        this.replys = source.createTypedArrayList(BlogReplyInfo.CREATOR);
    }

    public BlogReplysInfo() {
    }

    protected BlogReplysInfo(Parcel in) {
        this.total_count = in.readInt();
        this.replys = in.createTypedArrayList(BlogReplyInfo.CREATOR);
    }

    public static final Creator<BlogReplysInfo> CREATOR = new Creator<BlogReplysInfo>() {
        @Override
        public BlogReplysInfo createFromParcel(Parcel source) {
            return new BlogReplysInfo(source);
        }

        @Override
        public BlogReplysInfo[] newArray(int size) {
            return new BlogReplysInfo[size];
        }
    };
}
